package com.lidong.zc.databasemodel.annotation;

import com.lidong.zc.databasemodel.constants.DateTimeConst;

import java.lang.annotation.*;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 9/8/2022 9:40 PM
 */
// This annotation is used to field
@Target(ElementType.FIELD)
// When  run is  effective
@Retention(RetentionPolicy.RUNTIME)
// Java document annotation
@Documented
public @interface EnableTimeSuffix {

    /**
     * 开启时间后缀
     *
     * @return
     */
    boolean value() default false;

    /**
     * 时间后缀格式
     * <br> 使用常量类 {@link DateTimeConst}
     *
     * @return
     */
    String pattern() default DateTimeConst.DATE_MONTH;

}
